import { createStore, combineReducers, applyMiddleware } from 'redux';
import cartReducer from './reducers/cart';
import goodsDataReducer from './reducers/goodsData';
import { thunk } from 'redux-thunk';

let reducer = combineReducers({
    cart: cartReducer,
    data: goodsDataReducer
})

let store = createStore(reducer, applyMiddleware(thunk));

export default store;